package 
{
	import flash.display.*;
	import flash.events.*;
	import game.*;

	/**
	 * ...
	 * @author Goretskiy Alex
	 */
	[Frame(factoryClass="Preloader")]
	public class Main extends Sprite 
	{
		public function Main():void 
		{
			if (stage) init();
			else addEventListener(Event.ADDED_TO_STAGE, init);
		}

		private function init( e:Event = null ):void 
		{
			removeEventListener(Event.ADDED_TO_STAGE, init);
			MainMenu.instance.init( stage );
		}
	}

}